package BLL;

import DAL.ExaminationDAL;
import Entities.TblExamination;
import java.util.List;

public class ExaminationBLL {

    public ExaminationDAL dalObj;

    public boolean add(TblExamination obj){
        dalObj = new ExaminationDAL();
        return dalObj.add(obj);
    }

    public boolean update(TblExamination obj){
        dalObj = new ExaminationDAL();
        return dalObj.update(obj);
    }

    public boolean delete(TblExamination obj){
        dalObj = new ExaminationDAL();
        return dalObj.delete(obj);
    }

    public TblExamination getById(int id){
        dalObj = new ExaminationDAL();
        return dalObj.getById(id);
    }

    public List<TblExamination> getAll(){
        dalObj = new ExaminationDAL();
        return dalObj.getAll();
    }

    public List<TblExamination> getExaminationBySubjectId(int subjectId){
        dalObj = new ExaminationDAL();
        return dalObj.getBySubjectId(subjectId);
    }
}
